﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
<%@ Import Namespace="skags.Models" %>

<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Upp kom villa!
</asp:Content>

<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="main">
    <h2>
        Upp kom villa!
    </h2>
<%
    if (Model.Exception != null)
    {%>
    <p>&nbsp;</p>
    <blockquote><i><%=Model.Exception.Message%></i></blockquote>
    <!--
        <p>&nbsp;</p>
        <p><b>Type:</b> <%= Model.Exception.GetType() %></p>
        <p><b>Source:</b> <%= Model.Exception.Source %></p>
        <p><b>Target:</b> <%= Model.Exception.TargetSite %></p>
        <p><b>StackTrace:</b> <%= Model.Exception.StackTrace %></p>
        -->
        <%
    }
    else
    {
%>
    <p>Því miður kom upp villa sem ekki var gripin.</p>
    <p>Villan hefur verið skráð og tæknimenn látnir vita.</p>
    <p>Afsakið óþægindin.</p>
    <%
    }%>
    <p>&nbsp;</p>
    <p><a href="javascript:history.back(-1)">Fara til baka</a></p>
</div>
</asp:Content>